package com.yonyou.isv.demo.openapi.api.message;

import com.yonyou.isv.demo.openapi.api.*;
import com.yonyou.isv.demo.openapi.base.module.reponse.ApiDataResponse;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author nishch
 * @description: TODO
 * @date 2021/10/28
 */
@Component
public class ApproveCenterApi extends BaseOpenApi {

    public static String APPROVE_TYPE  =   "https://api.diwork.com/yonbip/uspace/approve/getApproveTypes";

    public Map<String, Object> getApprovePage(Map<String, Object> params) {
        String url = APPROVE_TYPE+ "?access_token="+getISVAccessToken().getAccessToken();
        ApiDataResponse apiDataResponse =  postForEntityUrl(url,params, ApiDataResponse.class);
        return getData(apiDataResponse);
    }
}
